package com.itsu.pojo.enums;

public enum ResultCode {
    // 定义通用成功和失败的枚举
    SUCCESS("20000", "操作成功!"),
    FAIL("30000", "操作失败!"),
    ERROR("99999", "未知错误"),

    // 业务枚举
    PARAM_INVALID("300001", "参数对象未空"),
    PHONE_VALIDATOR_ERROR("400000", "手机号验证失败!"),
    SEND_MESSAGE_FAIL("400001", "发送短信失败!"),

    VALIDATOR_CODE_NOT_TIMEOUT("50000", "验证码尚未过时!"),
    VALIDATOR_CODE_TIMEOUT("50001", "验证码已过时!"),
    VALIDATOR_CODE_ERROR("50002", "验证码错误!"),

    TOKEN_INVALIDATE("60000","TOKEN失效"),
    TOKEN_TIMEOUT("60001","TOKEN过时"),


    PHOTO_FORMART_ERROR("70000", "IMAGE格式错误"),
    PHOTO_SIZE_ERROR("70001", "IMAGE大小错误"),
    PHOTO_NAN_ERROR("70002", "IMAGE非人脸"),

    TODAY_BEST_NULL("80000", "todaybest is null"),
    RECOMMENDATION_NULL("80001", "recommendation is null"),

    PUBLISH_CONTEXT_NULL("90000", "context is null"),
    VIDEO_NULL("90001", "video is null"),
    VIDEO_FORMART_ERROR("90002", "VIDEO格式错误"),
    VIDEO_SIZE_ERROR("90003", "VIDEO大小错误"),

    USER_REGIT_ERROR("11000", "用户注册失败")


    ;

    private String code;
    private String value;

    private ResultCode(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public String getCode() {
        return code;
    }


    public String getValue() {
        return value;
    }

}
